package com.appbee.user.server.dao;

import java.util.logging.Logger;

import com.appbee.core.server.dao.BaseDAO;
import com.appbee.user.server.model.Member;
import com.google.appengine.api.datastore.Query.FilterOperator;

public class MemberDAO extends BaseDAO<Member>
{
	private static final Logger log = Logger.getLogger(MemberDAO.class.getName());
	
	public Member findByEmail(String email)
	{
		log.info("findByEmail: "+email);
		return objectDatastore.find().type(Member.class).addFilter("email", FilterOperator.EQUAL, email).returnUnique().now();
	}
}
